<div id="content">

    <div id="content-header">

        <div id="breadcrumb"><a href="<?php echo site_url('Login/login') ?>" title="Go to Home" class="tip-bottom"><i
                class="icon-home"></i> 主页</a> <a href="#" class="current">账务管理</a></div>

        <h1>账务信息列表</h1>
        <?php
          $url=site_url("finance/fianceInfolList/1");
          $url1=site_url("finance/fianceInfolList/2");
          $url2=site_url("finance/fianceInfolList/3");
?>
    </div>
    <div class="container-fluid">
        <hr>
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"> <i class="icon-th"></i> </span>
                        <h5>本月代理账务信息</h5>
                    </div>
                    <div class="widget-content nopadding">
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>当前持卡总量</th>
                                <td><?php echo $data[0][0]['cardcount']?></td>
                                <th>折扣损耗</th>
                                <td><?php echo $data[0][0]['scwm']?></td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr class="odd gradeX">
                                <th>充值总量</th>
                                <td><?php echo $data[0][0]['stn']?></td>
                                <th>活动赠送价值量</th>
                                <td><?php echo $data[0][0]['sac']*$data[0][0]['unitPrice']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>消耗总量</th>
                                <td><?php echo $data[0][0]['sdc']?></td>
                                <th>月流水</th>
                                <td><?php echo $data[0][0]['stn']*$data[0][0]['unitPrice']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>活动赠送总量</th>
                                <td><?php echo $data[0][0]['sac']?></td>
                                <th>月利润</th>
                                <td><?php echo $data[0][0]['sdc']*$data[0][0]['unitPrice']-$data[0][0]['sac']*$data[0][0]['unitPrice']-$data[0][0]['scwm']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>销售单价</th>
                                <td><?php echo $data[0][0]['unitPrice']?></td>
                                <th>待定</th>
                                <td>
                                    <button class="btn btn-warning btn-mini"
                                            onClick="window.open('<?php echo $url;?>','_self')">查看历史数据
                                    </button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"> <i class="icon-th"></i> </span>
                        <h5>本月玩家账务信息</h5>
                    </div>
                    <div class="widget-content nopadding">
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>当前持卡总量</th>
                                <td><?php echo $data[3][0]['cardcount']?></td>
                                <th>折扣损耗</th>
                                <td><?php echo $data[3][0]['scwm']?></td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr class="odd gradeX">
                                <th>充值总量</th>
                                <td><?php echo $data[3][0]['stn']?></td>
                                <th>活动赠送价值量</th>
                                <td><?php echo $data[3][0]['sac']*$data[3][0]['unitPrice']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>消耗总量</th>
                                <td><?php echo $data[3][0]['sdc']?></td>
                                <th>月流水</th>
                                <td><?php echo $data[3][0]['stn']*$data[3][0]['unitPrice']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>活动赠送总量</th>
                                <td><?php echo $data[3][0]['sac']?></td>
                                <th>月利润</th>
                                <td><?php echo $data[3][0]['sdc']*$data[3][0]['unitPrice']-$data[3][0]['sac']*$data[3][0]['unitPrice']-$data[3][0]['scwm']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>销售单价</th>
                                <td><?php echo $data[3][0]['unitPrice']?></td>
                                <th>待定</th>
                                <td>
                                    <button class="btn btn-warning btn-mini"
                                            onClick="window.open('<?php echo $url1;?>','_self')">查看历史数据
                                    </button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"> <i class="icon-th"></i> </span>
                        <h5>本月总代理账务信息</h5>
                    </div>
                    <div class="widget-content nopadding">
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>当前持卡总量</th>
                                <td><?php echo $data[2][0]['cardcount']?></td>
                                <th>折扣损耗</th>
                                <td><?php echo $data[2][0]['scwm']?></td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr class="odd gradeX">
                                <th>充值总量</th>
                                <td><?php echo $data[2][0]['stn']?></td>
                                <th>活动赠送价值量</th>
                                <td><?php echo $data[2][0]['sac']*$data[2][0]['unitPrice']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>消耗总量</th>
                                <td><?php echo $data[2][0]['sdc']?></td>
                                <th>月流水</th>
                                <td><?php echo $data[2][0]['stn']*$data[2][0]['unitPrice']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>活动赠送总量</th>
                                <td><?php echo $data[2][0]['sac']?></td>
                                <th>月利润</th>
                                <td><?php echo $data[2][0]['sdc']*$data[2][0]['unitPrice']-$data[2][0]['sac']*$data[2][0]['unitPrice']-$data[2][0]['scwm']?></td>
                            </tr>
                            <tr class="odd gradeX">
                                <th>销售单价</th>
                                <td><?php echo $data[2][0]['unitPrice']?></td>
                                <th>待定</th>
                                <td>
                                    <button class="btn btn-warning btn-mini"
                                            onClick="window.open('<?php echo $url2;?>','_self')">查看历史数据
                                    </button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>

    </div>

</div>